Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
4.7.0, 4.7.2
-
None
-
GNU/Linux Ubuntu 10.04, 64 bit
Windows XP SP3 32 bit
Windows 7 32 bit
Description
[Excuse me for my English]
I have find a bug in QTcpSocket.
I would like to reconnect automatically my socket when i lost connection (e.g: when the server crashed) but state of QTcpSocket stay in ConnectingState when i lost connection and when i try to reconnect me.
The server in running
I launch my program :
QTcpServer state: HostLookupState
QTcpServer state: ConnectingState
QTcpServer state: ConnectedState
Now, the server crashed :
QTcpServer error: QAbstractSocket::RemoteHostClosedError
QTcpServer state: QAbstractSocket::UnconnectedState
Now, my program try to reconnect to the server
QTcpServer state: QAbstractSocket::HostLookupState
QTcpServer state: QAbstractSocket::ConnectingState
-> QTcpServer stay in this state.